<div class="row">
    <div class="span12">
        <div class="widget">
            <div class="widget-header">
                <h3>
                    <i class="icon-th-list"></i>
                    <?php echo $table_title ?>
                </h3>
            </div> <!-- /widget-header -->

            <div class="widget-content">
                <table class="table table-bordered table-striped">
                    <thead>
                    <tr>
                        <?php
                        foreach($g_data['table']['thead'] as $h){
                            ?>
                            <th><?php echo $h ;?></th>
                        <?php
                        }
                        ?>
                    </tr>
                    </thead>
                    <tbody>
                    <?php
                    foreach($g_data['table']['tbody'] as $tbd_arr){
                        ?>
                        <tr>
                            <?php
                            foreach($tbd_arr as $key => $v){
                                ?>
                                <td><?php echo $v ;?></td>
                            <?php
                            }
                            ?>
                        </tr>
                    <?php
                    }
                    ?>
                    </tbody>
                </table>
            </div> <!-- /widget-content -->
        </div> <!-- /widget -->

    </div>
</div>